import { Controller, Body, Get, UseGuards, Request } from '@nestjs/common'
import { Responser } from '@app/decorators/responser.decorator'
import { QueryParams, QueryParamsResult } from '@app/decorators/queryparams.decorator'
import { APP } from '@app/app.config'
import { UserService } from '../user/user.service'
import { AuthUserGuard } from '@app/guards/auth-user.guard'
@Controller('user')
export class UserController {
  constructor(
    private readonly userService: UserService,
  ) { }

  @Get('info')
  @UseGuards(AuthUserGuard)
  @Responser.handle(('获取用户信息'))
  async getUserInfo(@Request() req) {
    return req.user
  }
}
